﻿
CREATE PROCEDURE [svc].[GetServersOverTheTimeoutLimitCount]
(
	@FromDate				datetime,
	@ToDate					datetime, 
	@Limit					int
)
AS
BEGIN

SELECT COUNT(*) FROM dbo.ExecSessionLog 
WHERE LastModifiedDate BETWEEN @FromDate AND @ToDate 
AND WaitTime > @Limit 

END